import request from '@/utils/request'
// 查询列表
export function getDataList(query) {
    return request({
      url: '/car/carMaintain/queryPageList',
      method: 'get',
      params: query
    })
}

// 查询详情
export function getDetails(id) {
  return request({
    url: '/car/carMaintain/'+id,
    method: 'get',
   
  })
}

// 查询历史
export function queryPageRecord(query) {
  return request({
    url: '/car/carMaintain/queryPageRecord',
    method: 'get',
    params: query
   
  })
}

//  删除

export function delMaintain(id) {
  return request({
    url: '/car/carMaintain/'+id,
    method: 'post',
   
  })
}